package com.banmao.mall.service.admin.impl;

import com.banmao.mall.mapper.CommentMapper;
import com.banmao.mall.model.pojo.Comment;
import com.banmao.mall.service.admin.CommentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Transactional
@Service
public class CommentServiceImpl implements CommentService {
    @Autowired
    CommentMapper commentMapper;
    @Override
    public List<Comment> getCommentListByMulCondition(Integer page, Integer limit, String sort, String order,Integer userId,Integer valueId) {
        List<Comment> comments = commentMapper.getCommentListByMulCondition(page, limit, sort, order,userId,valueId);
        return comments;
    }
}
